<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link rel="stylesheet" href="./css/reset.css">
  <link rel="stylesheet" href="./css/adm.css">
  <style type="text/css">
    h1 a:link {
      color: black;
    }

    h1 a:visited {
      color: black;
    }
  </style>
</head>

<body>
  <header>
    <h1><a href="index.php">Blog后台管理界面</a></h1>
  </header>
  <div id="main">
    <div id="lside">
      <aside>
        <h4>栏目管理</h4>
        <ul>
          <li><a href="catlist.php">栏目列表</a></li>
          <li><a href="catadd.php">添加栏目</a></li>
        </ul>
      </aside>
      <aside>
        <h4>文章管理</h4>
        <ul>
          <li><a href="artlist.php">文章列表</a></li>
          <li><a href="artadd.php">发布文章</a></li>
        </ul>
      </aside>
      <aside>
        <h4>个人中心</h4>
        <ul>
          <li><a href="">修改密码</a></li>
          <li><a href="info.php">退出登陆</a></li>
        </ul>
      </aside>
    </div>
    <div id="rside">
      <form action="" method="post">
        <div class="form-group">
          <label>标题:</label>
          <p>
            <input type="text" name="title" value="<?php echo $row['title']?>">
          </p>
        </div>
        <div class="form-group">
          <label>栏目:</label>
          <p>
            <select name="cat_id">
              <option value="<?php echo $lin['cat_id'];?>" selected="selected">
                <?php echo $lin['catname'];?>
              </option>
              <?php foreach ($cat as $k => $v) {?>
              <option value="<?php echo $v['cat_id'];?>">
                <?php echo $v['catname'];?>
              </option>
              <?php }?>
            </select>
          </p>
        </div>
        <div class="form-group">
          <label>内容:</label>
          <p>
            <textarea name="content"><?php echo $row['content']?></textarea>
          </p>
        </div>
        <!-- <div class="form-group">
          <label>标签:</label>
          <p>
            <input type="text" name="tags">
          </p>
        </div> -->
        <div class="form-group">
          <label>&nbsp;</label>
          <p>
            <button type="submit">提交</button>
          </p>
        </div>
      </form>
    </div>
  </div>
  <footer>
    Copyright &copy; 2020 · GeneratePress · WordPress
  </footer>
</body>

</html>